package Chapter08.poly_;

/**
 * @author 杨森
 * @date 2022年09月28日 20:40
 */
public class Staff extends Employee{
    public String work;

    public Staff(String work) {
        this.work = work;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public Staff(String name, Double sal, String work) {
        super(name, sal);
        this.work = work;
    }

    public Staff() {
    }

    public Staff(String name, Double sal) {
        super(name, sal);
    }

    public void staff(){
        System.out.println("普通员工 "+ getName()+" is working");
    }

    @Override
    public double getAnnualge() {
        return super.getAnnualge();
    }
}
